package cn.haohaowo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.kafka.core.KafkaTemplate;

import javax.annotation.PostConstruct;

@SpringBootApplication
@EnableEurekaClient
public class SomeApplication {

//	@Autowired
//	@Qualifier("haoShopKafkaTemplate")
//	private KafkaTemplate kafkaTemplate;

	public static void main(String[] args) {
		SpringApplication.run(SomeApplication.class, args);
	}


//	@PostConstruct
//	public void doProducer() {
//		kafkaTemplate.send("test", "Hello, I'm spring boot some");
//	}

}
